from urllib import request,parse
from urllib import response
import json

#POST DATA
url = r"http://localhost/callcenter_new/api/web/V1/rank/get-user-rank"
data = {'user_id':4816874}
post_data = parse.urlencode(data).encode('utf-8')

request_ok = request.Request(url,post_data)
response_read = request.urlopen(request_ok).read().decode('utf-8')
response_json = json.loads(response_read)
print(response_json['data']['remark'])